package com.blue.user.config;

import com.alibaba.nacos.common.http.param.MediaType;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @Author : CaiYang
 * @Date : 2025-03-21 17:00
 * @Description :
 */
@Configuration
public class WebConfig implements WebMvcConfigurer {
    @Override
    public void configureContentNegotiation(ContentNegotiationConfigurer configurer) {
        System.out.println("内容协商配置已加载"); // 添加日志
        configurer.defaultContentType(org.springframework.http.MediaType.valueOf(MediaType.APPLICATION_JSON));
    }
}
